﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace FinalProject
{
    public partial class CaptCha : System.Web.UI.UserControl
    {

        public bool IsValidVerifyCode
        {
            get 
            {
                this.RadCaptCha.Validate();
                return this.RadCaptCha.IsValid; 
            }
        }

        public void SetCSSVerifyCode(string width, string paddingTop)
        {
            this.divVerifyText.Attributes.Clear();

            divVerifyText.Style.Add("width", width);
            divVerifyText.Style.Add("text-align", "left");
            divVerifyText.Style.Add("padding-top", paddingTop);
            divVerifyText.Style.Add("float", "left");
            divVerifyText.Style.Add("color", "#2A5C8F");
            divVerifyText.Style.Add("font-weight", "bold");
            divVerifyText.Style.Add("font-size", "8pt");
            divVerifyText.Style.Add("font", "arial");
        }

        protected void Page_Load(object sender, EventArgs e)
        {
        }
    }
}